package booker.guanshuqian.myconnect.service;

import booker.guanshuqian.myconnect.dao.UserMapper;
import booker.guanshuqian.myconnect.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User findUserById(int id) {
        return userMapper.selectById(id);
    }
    public User findUserByName(String username){
        return userMapper.selectByName(username);
    }
}